﻿using System;
using RpcExtendModel;

namespace Wedonek.RpcStore.Gateway.Model
{
        public class TraceLog
        {
                /// <summary>
                /// 日志id
                /// </summary>
                public Guid Id { get; set; }
                /// <summary>
                /// SpanId
                /// </summary>
                public long SpanId { get; set; }
                /// <summary>
                /// 父级SpanId
                /// </summary>
                public long ParentId { get; set; }
                /// <summary>
                /// 服务名（纪录者）
                /// </summary>
                public string ServerName { get; set; }
                /// <summary>
                /// 指令
                /// </summary>
                public string Dictate { get; set; }
                /// <summary>
                /// 服务节点ID(纪录者)
                /// </summary>
                public long ServerId { get; set; }
                /// <summary>
                /// 服务节点类型(纪录者)
                /// </summary>
                public string SystemType { get; set; }
                /// <summary>
                /// 远程服务器节点名
                /// </summary>
                public string Remote { get; set; }
                /// <summary>
                /// 远程服务器节点ID
                /// </summary>
                public long RemoteId { get; set; }
                /// <summary>
                /// 区域ID
                /// </summary>
                public int RegionId { get; set; }
                /// <summary>
                /// 区域名
                /// </summary>
                public string Region { get; set; }
                /// <summary>
                /// 消息类型
                /// </summary>
                public string MsgType { get; set; }
                /// <summary>
                /// 类型
                /// </summary>
                public StageType StageType { get; set; }
                /// <summary>
                /// 起始时间
                /// </summary>
                public DateTime BeginTime { get; set; }
                /// <summary>
                /// 结束时间
                /// </summary>
                public DateTime EndTime { get; set; }
                /// <summary>
                /// 执行时长
                /// </summary>
                public int Duration { get; set; }
        }
}
